﻿#region Microsoft Public License
/*
 * (c) Copyright Zhun Qu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using UTable.Input;
using UTable.Input.MultiTouch;
using UTable.Objects;
using UTable.Objects.Controls;

namespace UTable.Objects.Controls
{
    /// <summary>
    /// Interaction logic for UImageButton.xaml
    /// </summary>
    public partial class UImageButton : UButton
    {
        public UImageButton()
        {
            InitializeComponent();
            
        }

        public String ButtonImageSource
        {
            get { return (String)GetValue(ButtonImageSourceProperty); }
            set { Console.WriteLine(value); SetValue(ButtonImageSourceProperty, value); }
        }

        public String Text
        {
            get { return (String)GetValue(TextProperty); }
            set { Console.WriteLine(value); SetValue(TextProperty, value); }
        }

        public static readonly DependencyProperty ButtonImageSourceProperty =
            DependencyProperty.Register("ButtonImageSource", typeof(String), typeof(UImageButton), new UIPropertyMetadata(String.Empty));

        public static readonly DependencyProperty TextProperty =
            DependencyProperty.Register("Text", typeof(String), typeof(UImageButton), new UIPropertyMetadata(String.Empty));

        private new object Content
        {
            get { return base.Content; }
        }
    }
}
